package com.lqjava.tuxiaowang.tuxiaowang.beans.enums;

import lombok.Getter;

@Getter
public enum UserTypeEnums {
	
	WECHART("微信用户",1),
	
	ALI("支付宝用户",2),
	
	;
	private String name;
	private Integer code;
	UserTypeEnums(String name, Integer code) {
		this.name = name;
		this.code = code;
	}
	
	public static UserTypeEnums getUserTypeEnums(Integer userType){
		return userType == 1 ? WECHART : ALI;
	}
}
